# 待测 函数
# def num(name,school,sex,age,prt,lukyNumbers):
#     if name == "小明" and school == "清华大学" and sex == "男" and age == 20 and prt == ["1岁的狗,2岁的猫,3岁的猪"]\
#             and lukyNumbers == [2,5,8]:
#         return "信息正确"
#     else:
#         return "信息错误"

def input_num():
    """定义输入数据函数"""

    try:
        num = int(input("请输入整数："))
        result = 8 / num
        print(result)
    except ValueError:
        print("请输入正确的整数")
    except ZeroDivisionError:
        print("除 0 错误")


if __name__ == '__main__':
    input_num()